Embed a database in the .apk of a distributed application [Android]

Posted by Sephy on Stack Overflow See other posts from Stack Overflow or by Sephy
Published on 2010-06-10T09:04:45Z Indexed on 2010/06/10 11:52 UTC
Read the original article Hit count: 249

Filed under:
|
|

Hi everybody,
My question is I think quite simple but I don't think the answer will be... I have quite a lot of content to have in my application to make it run properly, and I'm thinking of putting all of it in a database, and distribute it in an embeded database with the application in the market. The only trouble is that I have no idea of how to do that. I know that I can extract a file .db from Eclipse DDMS with the content of my database, and I suppose I need to put it in the asset folder of my application, but then how to make the application use it to regenerate the application database? If you have any link to some code or help, that would be great. Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about database